package com.wkhyapp.lm.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wkhyapp.lm.R;
import com.wkhyapp.lm.http.vo.Member;
import com.wkhyapp.lm.http.vo.ThinkUser;
import com.wkhyapp.lm.utils.DateUtil;
import com.wkhyapp.lm.utils.ImageLoadUtil;

import java.util.List;

/**
 * Created by fang on 2021/11/24.
 */

public class ShangJiaAdapter  extends BaseQuickAdapter<ThinkUser, BaseViewHolder> {


    public ShangJiaAdapter(int layoutResId, List<ThinkUser> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ThinkUser item) {
        ImageView head = helper.getView(R.id.head_iv);
        ImageLoadUtil.setCirlcleImage_Normals(mContext,item.getHeadImg(),head);
        helper.setText(R.id.name_tv,item.getNickname());
        helper.setText(R.id.desc_tv,item.getDesc());
        helper.setText(R.id.time_tv,"注册时间:"+ DateUtil.timeStamp2Date(item.getCreateTime()+""));
    }


}
